package com.crane.framework.dto;

import lombok.Data;
import lombok.Getter;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import jakarta.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;

import java.io.Serial;
import java.io.Serializable;

import java.time.LocalDateTime;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;

import org.hibernate.validator.constraints.Length;

/**
 * @Author: ten.x @TableName sys_role @Date: 2024-01-17 02:20:23 @Version: V1.0
 */
@Data
@Accessors(chain = true)
@TableName(value = "sys_role")
@EqualsAndHashCode(callSuper = false)
public class RoleAddDTO implements Serializable {

  @Serial
  @TableField(exist = false)
  private static final long serialVersionUID = 1L;

  /** 角色名 */
  @Size(max = 255, message = "编码长度不能超过255")
  @TableField(value = "role_name")
  @Schema(description = "角色名")
  @Length(max = 255, message = "编码长度不能超过255")
  private String roleName;

  /** 角色标识 */
  @Size(max = 255, message = "编码长度不能超过255")
  @TableField(value = "role_sign")
  @Schema(description = "角色标识")
  @Length(max = 255, message = "编码长度不能超过255")
  private String roleSign;
}
